<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <title>医疗知识库管理</title>
  <link rel="shortcut icon" href="${request.contextPath}/images/favicon.ico">
  <link rel="stylesheet" href="${request.contextPath}/plugins/bootstrap/css/bootstrap.min.css">
  <link rel="stylesheet" href="${request.contextPath}/plugins/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="${request.contextPath}/hadmin/css/animate.css">
  <link rel="stylesheet" href="${request.contextPath}/hadmin/css/style.css">
  <link rel="stylesheet" href="${request.contextPath}/hadmin/css/login.css">
  <script>
    if(window.top!==window.self){alert('未登录或登录超时，请重新登录。');window.top.location=window.location};
  </script>
</head>
<body class="signin">
<div class="signinpanel">
  <div class="row">
    <div class="col-sm-12">
      <form method="post" action="${request.contextPath}/login/doLogin">
        <#if error??>
          <p class="m-t-md" style="color:red;">
            <i class="fa fa-exclamation-triangle"></i>${error!}
          </p>
        </#if>
        <input name="userName" type="text" class="form-control uname" placeholder="用户名"
               value="admin"/>
        <input name="password" type="password" class="form-control pword m-b" placeholder="密码"
               value="admin123"/>
        <div style="width: 55%;float: left;">
          <input type="text" name="captcha" class="form-control code" placeholder="验证码"/>
        </div>
        <div style="width: 45%;float:left;" title="点击更换验证码">
          <img style="cursor:pointer;" id="imgCode" src="${request.contextPath}/login/captcha"/>
        </div>
        <button class="btn btn-info btn-block">登录</button>
      </form>
    </div>
  </div>
  <div class="signup-footer">
    <div class="pull-left">
    </div>
  </div>
</div>
<script src="${request.contextPath}/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script>
  $("#imgCode").on('click', function () {
    $(this).attr('src', '${request.contextPath}/login/captcha?_' + new Date().getTime());
  });
</script>
</body>
</html>
